#!/bin/bash

project=fucai
port=8082
projectPath=/opt/py/fucai

#docker build
set -e
docker build --network=host -t $project:latest -f $projectPath/Dockerfile $projectPath/
set +e
docker rm -f $project
set -e
docker run -d --name $project --memory=1g --restart=always -p $port:$port \
$project:latest
